<%# The activity shouldn't be nil, but we're wearing a belt and suspenders. %>
<%- unless activity.item.nil? -%>
<li>
  <div class="profile-image">
  <%if !(activity.person.nil?)%>
    <%= image_link activity.person, :image => :thumbnail %>
   <%end%>
    <%= feed_icon activity %>
  </div>
  <p>
        <%if !(activity.person.nil?)%>
    <%= feed_message activity %>
    <%end%>
      <%- if current_person?(activity.person) -%>
        <%= link_to(image_tag("icons/close.gif"), 
                          activity_path(activity), 
                          :method => :delete, 
                          :confirm => %(Are you sure you want to delete this activity from your profile?)) %>
  <%- end -%>
    </p>
  <p class="meta published">
    <%= time_ago_in_words(activity.created_at).capitalize %> ago
  </p>

</li>
<%- end -%>
